<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<script src="vue.js"></script>
	<body>
		<div id="test1">
			<input @keydown.20="daxie" type="text" name="" id="" value="" />
			<h3 v-show="imshow">已切换成大写</h3>
		</div>
	</body>
	<script>
	var app=new Vue({
		el:"#test1",
		data:{
			imshow:false,
		},
		methods:{
			daxie(){
				if(this.imshow==false){
					this.imshow=true
				}else{
					this.imshow=false
				}
			},
			
		}
	})
	
	</script>
</html>
